const { GXH_Reply } = require("../gzhConst");
const { textReply } = require("./text");
const { pictureReply } = require("./picture");
const { voiceReply } = require("./voice");
const { videoReply } = require("./video");
const { musicReply } = require("./music");
const { pictureTextReply } = require("./pictureText");
function replyMessage(xml, targetType, param) {
    if (targetType === GXH_Reply.Text) {
        return textReply(xml, param);
    } else if (targetType === GXH_Reply.Picture) {
        return pictureReply(xml, param);
    } else if (targetType === GXH_Reply.Voice) {
        return voiceReply(xml, param);
    } else if (targetType === GXH_Reply.Video) {
        return videoReply(xml, param);
    } else if (targetType === GXH_Reply.Music) {
        return musicReply(xml, param);
    } else if (targetType === GXH_Reply.PictureText) {
        return pictureTextReply(xml, param);
    }
    return null;
}

module.exports = {
    replyMessage,
};
